package com.chinasoft.book.app;

import com.chinasoft.book.service.BookService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class BeanAutoWireMain {
    public static void main(String[] args){
        ApplicationContext ioc=new ClassPathXmlApplicationContext("bean_autowire.xml");
        BookService bookService=ioc.getBean("bookService", BookService.class);
        bookService.queryBook();
    }
}
